package main

import (
	"encoding/base64"
	"fmt"
	"os"
	"strings"
)

func setBase64(str string) string {
	return base64.StdEncoding.EncodeToString([]byte(str))
}
func getBase64(str string) string {
	decodeBytes, _ := base64.StdEncoding.DecodeString(str)
	return string(decodeBytes)
}
func getPassword(oldpassword string) string {
	temp := []string{"x", "h", "a", "z"}
	new_temp := []string{}
	for index, value := range oldpassword {
		new_temp = append(new_temp, setBase64(string(value)))
		if index <= 3 {
			new_temp = append(new_temp, setBase64(temp[index]))
		}

	}
	new_str := setBase64(strings.Join(new_temp, ""))
	return new_str
}
func main() {
	fmt.Println(getPassword(os.Args[1]))
}
